import React from 'react'
import { Link } from 'react-router-dom'

import moment from 'moment'

// export default ContactList
class ContactList extends React.Component {
    render() {
      return (
        null
      );
    }
}

import InfiniteLoading from '../../../components/infinite-loding-hoc'
let url = '/mem/linkman',
    classname='tidings',
    row = (x, sectionID, rowID) => {
        return (
            <Link to={`/contacts/detail/${x.id}`} key={x.id}>
                <div class="contacts-list">
                    <div className='avatar'>
                        <img src={x.avatar}/>
                    </div>
                    <p>
                        {x.nickname}
                    </p>
                    {x.show_link_red_dot ? <i></i> : null}
                </div>
            </Link>
        )
    }
export default InfiniteLoading(url, row, classname)(ContactList)